package com.vanysoft.business.sys.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.vanysoft.business.sys.dao.NotifyMapper;
import com.vanysoft.business.sys.entity.Notify;
import com.vanysoft.business.sys.service.NotifyService;
import com.vanysoft.framework.config.database.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 角色服务类实现
 *
 * @author qi_ma
 */
@Service
public class NotifyServiceImpl extends BaseServiceImpl<NotifyMapper, Notify> implements NotifyService {
    @Override
    public List<Notify> selectAll(Map<String, Object> condition) {
        return baseMapper.selectAll(condition);
    }

    @Override
    public Page<Notify> selectAll(Page<Notify> page) {
        page.setRecords(baseMapper.selectAll(page, page.getCondition()));
        return page;
    }
}
